package com.eyesdata.dsp.op.dao.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class QualInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public QualInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCustNoIsNull() {
            addCriterion("cust_no is null");
            return (Criteria) this;
        }

        public Criteria andCustNoIsNotNull() {
            addCriterion("cust_no is not null");
            return (Criteria) this;
        }

        public Criteria andCustNoEqualTo(String value) {
            addCriterion("cust_no =", value, "custNo");
            return (Criteria) this;
        }

        public Criteria andCustNoNotEqualTo(String value) {
            addCriterion("cust_no <>", value, "custNo");
            return (Criteria) this;
        }

        public Criteria andCustNoGreaterThan(String value) {
            addCriterion("cust_no >", value, "custNo");
            return (Criteria) this;
        }

        public Criteria andCustNoGreaterThanOrEqualTo(String value) {
            addCriterion("cust_no >=", value, "custNo");
            return (Criteria) this;
        }

        public Criteria andCustNoLessThan(String value) {
            addCriterion("cust_no <", value, "custNo");
            return (Criteria) this;
        }

        public Criteria andCustNoLessThanOrEqualTo(String value) {
            addCriterion("cust_no <=", value, "custNo");
            return (Criteria) this;
        }

        public Criteria andCustNoLike(String value) {
            addCriterion("cust_no like", value, "custNo");
            return (Criteria) this;
        }

        public Criteria andCustNoNotLike(String value) {
            addCriterion("cust_no not like", value, "custNo");
            return (Criteria) this;
        }

        public Criteria andCustNoIn(List<String> values) {
            addCriterion("cust_no in", values, "custNo");
            return (Criteria) this;
        }

        public Criteria andCustNoNotIn(List<String> values) {
            addCriterion("cust_no not in", values, "custNo");
            return (Criteria) this;
        }

        public Criteria andCustNoBetween(String value1, String value2) {
            addCriterion("cust_no between", value1, value2, "custNo");
            return (Criteria) this;
        }

        public Criteria andCustNoNotBetween(String value1, String value2) {
            addCriterion("cust_no not between", value1, value2, "custNo");
            return (Criteria) this;
        }

        public Criteria andLicencePicIsNull() {
            addCriterion("licence_pic is null");
            return (Criteria) this;
        }

        public Criteria andLicencePicIsNotNull() {
            addCriterion("licence_pic is not null");
            return (Criteria) this;
        }

        public Criteria andLicencePicEqualTo(String value) {
            addCriterion("licence_pic =", value, "licencePic");
            return (Criteria) this;
        }

        public Criteria andLicencePicNotEqualTo(String value) {
            addCriterion("licence_pic <>", value, "licencePic");
            return (Criteria) this;
        }

        public Criteria andLicencePicGreaterThan(String value) {
            addCriterion("licence_pic >", value, "licencePic");
            return (Criteria) this;
        }

        public Criteria andLicencePicGreaterThanOrEqualTo(String value) {
            addCriterion("licence_pic >=", value, "licencePic");
            return (Criteria) this;
        }

        public Criteria andLicencePicLessThan(String value) {
            addCriterion("licence_pic <", value, "licencePic");
            return (Criteria) this;
        }

        public Criteria andLicencePicLessThanOrEqualTo(String value) {
            addCriterion("licence_pic <=", value, "licencePic");
            return (Criteria) this;
        }

        public Criteria andLicencePicLike(String value) {
            addCriterion("licence_pic like", value, "licencePic");
            return (Criteria) this;
        }

        public Criteria andLicencePicNotLike(String value) {
            addCriterion("licence_pic not like", value, "licencePic");
            return (Criteria) this;
        }

        public Criteria andLicencePicIn(List<String> values) {
            addCriterion("licence_pic in", values, "licencePic");
            return (Criteria) this;
        }

        public Criteria andLicencePicNotIn(List<String> values) {
            addCriterion("licence_pic not in", values, "licencePic");
            return (Criteria) this;
        }

        public Criteria andLicencePicBetween(String value1, String value2) {
            addCriterion("licence_pic between", value1, value2, "licencePic");
            return (Criteria) this;
        }

        public Criteria andLicencePicNotBetween(String value1, String value2) {
            addCriterion("licence_pic not between", value1, value2, "licencePic");
            return (Criteria) this;
        }

        public Criteria andCardNoFirstIsNull() {
            addCriterion("card_no_first is null");
            return (Criteria) this;
        }

        public Criteria andCardNoFirstIsNotNull() {
            addCriterion("card_no_first is not null");
            return (Criteria) this;
        }

        public Criteria andCardNoFirstEqualTo(String value) {
            addCriterion("card_no_first =", value, "cardNoFirst");
            return (Criteria) this;
        }

        public Criteria andCardNoFirstNotEqualTo(String value) {
            addCriterion("card_no_first <>", value, "cardNoFirst");
            return (Criteria) this;
        }

        public Criteria andCardNoFirstGreaterThan(String value) {
            addCriterion("card_no_first >", value, "cardNoFirst");
            return (Criteria) this;
        }

        public Criteria andCardNoFirstGreaterThanOrEqualTo(String value) {
            addCriterion("card_no_first >=", value, "cardNoFirst");
            return (Criteria) this;
        }

        public Criteria andCardNoFirstLessThan(String value) {
            addCriterion("card_no_first <", value, "cardNoFirst");
            return (Criteria) this;
        }

        public Criteria andCardNoFirstLessThanOrEqualTo(String value) {
            addCriterion("card_no_first <=", value, "cardNoFirst");
            return (Criteria) this;
        }

        public Criteria andCardNoFirstLike(String value) {
            addCriterion("card_no_first like", value, "cardNoFirst");
            return (Criteria) this;
        }

        public Criteria andCardNoFirstNotLike(String value) {
            addCriterion("card_no_first not like", value, "cardNoFirst");
            return (Criteria) this;
        }

        public Criteria andCardNoFirstIn(List<String> values) {
            addCriterion("card_no_first in", values, "cardNoFirst");
            return (Criteria) this;
        }

        public Criteria andCardNoFirstNotIn(List<String> values) {
            addCriterion("card_no_first not in", values, "cardNoFirst");
            return (Criteria) this;
        }

        public Criteria andCardNoFirstBetween(String value1, String value2) {
            addCriterion("card_no_first between", value1, value2, "cardNoFirst");
            return (Criteria) this;
        }

        public Criteria andCardNoFirstNotBetween(String value1, String value2) {
            addCriterion("card_no_first not between", value1, value2, "cardNoFirst");
            return (Criteria) this;
        }

        public Criteria andCardNoBackIsNull() {
            addCriterion("card_no_back is null");
            return (Criteria) this;
        }

        public Criteria andCardNoBackIsNotNull() {
            addCriterion("card_no_back is not null");
            return (Criteria) this;
        }

        public Criteria andCardNoBackEqualTo(String value) {
            addCriterion("card_no_back =", value, "cardNoBack");
            return (Criteria) this;
        }

        public Criteria andCardNoBackNotEqualTo(String value) {
            addCriterion("card_no_back <>", value, "cardNoBack");
            return (Criteria) this;
        }

        public Criteria andCardNoBackGreaterThan(String value) {
            addCriterion("card_no_back >", value, "cardNoBack");
            return (Criteria) this;
        }

        public Criteria andCardNoBackGreaterThanOrEqualTo(String value) {
            addCriterion("card_no_back >=", value, "cardNoBack");
            return (Criteria) this;
        }

        public Criteria andCardNoBackLessThan(String value) {
            addCriterion("card_no_back <", value, "cardNoBack");
            return (Criteria) this;
        }

        public Criteria andCardNoBackLessThanOrEqualTo(String value) {
            addCriterion("card_no_back <=", value, "cardNoBack");
            return (Criteria) this;
        }

        public Criteria andCardNoBackLike(String value) {
            addCriterion("card_no_back like", value, "cardNoBack");
            return (Criteria) this;
        }

        public Criteria andCardNoBackNotLike(String value) {
            addCriterion("card_no_back not like", value, "cardNoBack");
            return (Criteria) this;
        }

        public Criteria andCardNoBackIn(List<String> values) {
            addCriterion("card_no_back in", values, "cardNoBack");
            return (Criteria) this;
        }

        public Criteria andCardNoBackNotIn(List<String> values) {
            addCriterion("card_no_back not in", values, "cardNoBack");
            return (Criteria) this;
        }

        public Criteria andCardNoBackBetween(String value1, String value2) {
            addCriterion("card_no_back between", value1, value2, "cardNoBack");
            return (Criteria) this;
        }

        public Criteria andCardNoBackNotBetween(String value1, String value2) {
            addCriterion("card_no_back not between", value1, value2, "cardNoBack");
            return (Criteria) this;
        }

        public Criteria andCreatTimeIsNull() {
            addCriterion("creat_time is null");
            return (Criteria) this;
        }

        public Criteria andCreatTimeIsNotNull() {
            addCriterion("creat_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreatTimeEqualTo(Date value) {
            addCriterion("creat_time =", value, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeNotEqualTo(Date value) {
            addCriterion("creat_time <>", value, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeGreaterThan(Date value) {
            addCriterion("creat_time >", value, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("creat_time >=", value, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeLessThan(Date value) {
            addCriterion("creat_time <", value, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeLessThanOrEqualTo(Date value) {
            addCriterion("creat_time <=", value, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeIn(List<Date> values) {
            addCriterion("creat_time in", values, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeNotIn(List<Date> values) {
            addCriterion("creat_time not in", values, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeBetween(Date value1, Date value2) {
            addCriterion("creat_time between", value1, value2, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeNotBetween(Date value1, Date value2) {
            addCriterion("creat_time not between", value1, value2, "creatTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andAudStatusIsNull() {
            addCriterion("aud_status is null");
            return (Criteria) this;
        }

        public Criteria andAudStatusIsNotNull() {
            addCriterion("aud_status is not null");
            return (Criteria) this;
        }

        public Criteria andAudStatusEqualTo(String value) {
            addCriterion("aud_status =", value, "audStatus");
            return (Criteria) this;
        }

        public Criteria andAudStatusNotEqualTo(String value) {
            addCriterion("aud_status <>", value, "audStatus");
            return (Criteria) this;
        }

        public Criteria andAudStatusGreaterThan(String value) {
            addCriterion("aud_status >", value, "audStatus");
            return (Criteria) this;
        }

        public Criteria andAudStatusGreaterThanOrEqualTo(String value) {
            addCriterion("aud_status >=", value, "audStatus");
            return (Criteria) this;
        }

        public Criteria andAudStatusLessThan(String value) {
            addCriterion("aud_status <", value, "audStatus");
            return (Criteria) this;
        }

        public Criteria andAudStatusLessThanOrEqualTo(String value) {
            addCriterion("aud_status <=", value, "audStatus");
            return (Criteria) this;
        }

        public Criteria andAudStatusLike(String value) {
            addCriterion("aud_status like", value, "audStatus");
            return (Criteria) this;
        }

        public Criteria andAudStatusNotLike(String value) {
            addCriterion("aud_status not like", value, "audStatus");
            return (Criteria) this;
        }

        public Criteria andAudStatusIn(List<String> values) {
            addCriterion("aud_status in", values, "audStatus");
            return (Criteria) this;
        }

        public Criteria andAudStatusNotIn(List<String> values) {
            addCriterion("aud_status not in", values, "audStatus");
            return (Criteria) this;
        }

        public Criteria andAudStatusBetween(String value1, String value2) {
            addCriterion("aud_status between", value1, value2, "audStatus");
            return (Criteria) this;
        }

        public Criteria andAudStatusNotBetween(String value1, String value2) {
            addCriterion("aud_status not between", value1, value2, "audStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}